{% extends "::base.html.twig" %}

{% block title %}Licenciés du club - {{ parent() }}{% endblock %}

{% block stylesheets %}
    {{ parent() }}
    <link rel="stylesheet" href="{{ asset('/bundles/tabletennislicensee/css/main.css') }}" type="text/css" media="screen" />
{% endblock %}

{% block title_page %}licensee{% endblock %}

{% block content %}

<h1 class="title">Liste des licenciés du club</h1>

<ul>
    <li class='head'>
        <span>Position</span>
        <span>Nom</span>
        <span>Prénom</span>
        <span>N° licence</span>
        <span>Points mensuels</span>
        <span>Catégorie</span>
    </li>
    {% for licensee in licensee_list %}
    <li class='body l_{{ loop.index%2 }}'>
        <a href="{{ path('_sonataUserDashboard', { "licensee_number" : licensee.licensee_number ,"slug": licensee.slug } ) }}">
            <span>{{ loop.index }}</span>
            <span>{{ licensee.lastname }}</span>
            <span>{{ licensee.firstname }}</span>
            <span>{{ licensee.licensee_number }}</span>
            <span>{{ licensee.nb_current_points | default("-") }}</span>
            <span>{{ licensee.category }}</span>
        </a>
    </li>
    {% else %}
    <li>
        <p>Aucun licencié n'a été trouvé.</p>
    </li>
    {% endfor %}
</ul>

{% endblock %}